package com.ubireality.service.bizlogic.dao;

import java.io.Serializable;

import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.transaction.Transactional;

import org.apache.log4j.Logger;

@Transactional
public class UserDAO implements UserDAOI, Serializable {
	/**
	 *
	 */
	private static final long serialVersionUID = 1284616697912490899L;
	@Inject
	private transient Logger logger;
	@Inject
	private EntityManager entityManager;

	@Override
	public void save(Object obj) {
		entityManager.persist(obj);
		logger.debug("new user: " + obj + " saved");
	}

	@Override
	public void delete(Object obj) {
		// TODO Auto-generated method stub

	}

}
